<PRE>
<?php

class MyFunnyClass
{
	protected $name;
	protected $value;
	protected $valArr;
	
	function Set( $x, $y, $z )   
	{
		$this->name = $x;
		$this->value = $y;
		$this->valArr = array_fill( 0, 10, $z );
	}

	function Display()   
	{
		print "name:\t" . $this->name . "\n";
		print "value:\t" . $this->value . "\n";
		print "valArr:\n";
		var_dump( $this->valArr );
		print "------------\n";
	}
}


class MyContainer
{
	protected $objA;

	protected function DoCopy()
	{
		$objB = new MyFunnyClass;
		$objB->Set( "This is object B", 888.888, 9.9 );
		$objB->Display();

		$this->objA = $objB;
	}
	
	function Run()
	{
		$this->objA = new MyFunnyClass;
		$this->objA->Set( "This is object A", 222.222, 3.3 );
		$this->objA->Display();

		$this->DoCopy();
		$this->objA->Display();
	}
}

print "Start Exec\n";
$cont = new MyContainer;
$cont->Run();
print "End Exec\n";

?>
</PRE>

